<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title th:replace="${title}">header</title>
    <link rel="stylesheet" href="../../static/css/semantic.min.css" th:href="@{/css/semantic.min.css}">
    <link rel="stylesheet" href="../../static/css/icon.min.css" th:href="@{/css/icon.min.css}">
    <link rel="stylesheet" href="../../static/css/mine.css" th:href="@{/css/mine.css}">
</head>
<body>
<nav th:fragment="menu(n)" class="ui inverted attached segment mine-padded-tb-mini">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">后台管理</h2>
            <a href="#" th:href="@{/admin/blogs}" class="m-item item mine-mobile-hide"
               th:classappend="${n==1} ? 'active'"><i class="home icon"></i> 笔记</a>
            <a href="#" th:href="@{/admin/types}" class="m-item item mine-mobile-hide"
               th:classappend="${n==2} ? 'active'"><i class="idea icon"></i> 分类</a>
            <a href="#" th:href="@{/admin/tags}" class="m-item item mine-mobile-hide"
               th:classappend="${n==3} ? 'active'"><i class="tags icon"></i> 标签</a>
            <div class="right menu m-item mine-mobile-hide">
                <div class="ui dropdown item">
                    <div class="text">
                        <img class="ui avatar image" src="../../static/image/mw.jpg" th:src="@{/image/mw.jpg}">
                        李晓坤
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="#" class="item" th:href="@{/admin/logout}">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <a href="#" onclick="$('.m-item').toggleClass('mine-mobile-hide');"
       class="ui menu toggle black icon button mine-right-top mine-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>


<footer th:fragments="footer" class="ui inverted vertical segment mine-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../../static/image/gzh.jpg" th:src="@{/image/gzh.jpg}" class="ui rounded image"
                             alt="">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新笔记</h4>
                <div class="ui inverted link list mine-opacity-mini">
                    <a th:each="newBlog : ${newBlogs}" href="#" class="item"><span th:text="${newBlog.title}">用户故事{User Story}</span></a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">联系我</h4>
                <div class="ui inverted link list mine-opacity-mini">
                    <a href="#" class="item">18700943190@163.com</a>
                    <a href="#" class="item">1197597322</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header">Blog</h4>
                <p class="mine-opacity-mini">
                    这是我的个人笔记，会分享关于编程、思考相关的内容，希望可以给来到这里的人以帮助......
                </p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="mine-text-thin mine-text-spaced">Copyright@2016-2017 Lixiaokun Designed by Lxk</p>
    </div>
</footer>
</body>
</html>